import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home.vue'
import Classify from '@/pages/Classify'
import GroupBuying from '@/pages/GroupBuying'
import ShopCar from '@/pages/ShopCar'
import My from '@/pages/My'
import Search from '@/components/Search/Search'
import Register from '@/components/My/Register'
import Enter from '@/components/My/Enter'
import ClassifyList from '@/components/Classify/ClassifyList'
import listDetails from '@/components/Classify/listDetails'
import Buy from '@/components/ShopCar/Buy'

Vue.use(Router)

export default new Router({
  mode: 'history',
  linkActiveClass: 'my-active',
  routes: [
    { path: '/', redirect: '/Home' },
    { path: '/Home', name: 'Home', component: Home },
    { path: '/GroupBuying', name: 'GroupBuying', component: GroupBuying },
    { path: '/ShopCar', name: 'ShopCar', component: ShopCar },
    { path: '/My', name: 'My', component: My },
    { path: '/Search', name: 'Search', component: Search },
    { path: '/Register', name: 'Register', component: Register },
    { path: '/Enter', name: 'Enter', component: Enter },
    { path: '/Classify', name: 'Classify', component: Classify },
    { path: '/ClassifyList', name: 'ClassifyList', component: ClassifyList },
    { path: '/listDetails', name: 'listDetails', component: listDetails },
    { path: '/ShopCar/Buy', name: 'Buy', component: Buy }
  ]
})
